const glob = require('glob');
const path = require('path');
const entryFiles = glob.sync('./src/entries/*.js');
console.log(entryFiles);
entryFiles.forEach(entryFile=>{
   //let entryName = path.basename(entryFile.split(path.sep).pop());
   let entryName = path.basename(entryFile, '.js');
   console.log(entryName)
});
